﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;
using System.Data.SqlClient;
using System.Diagnostics;
using System.Data;
using System.Drawing;

namespace JobsheetApp
{
    public class Account
    {
        string userName = null;
        string emailAddress = null;
        string password = null;
        string group = null;
        string position = null;
        string privileges = null;

        public Account(string userName, string emailAddress, string password, string group, string position, string privileges)
        {
            this.userName = userName;
            this.emailAddress = emailAddress;
            this.password = password;
            this.group = group;
            this.position = position;
            this.privileges = privileges;

        }

        public string Username { get; set; }
        public string EmailAddress { get; set; }
        public string Password { get; set; }
        public string Group { get; set; }
        public string Position {get; set;}
        public string Privileges { get; set; }



        public void Insert()
    {
        SqlConnection conn = new SqlConnection();
        SqlCommand cmd = new SqlCommand();

        try
        {
            conn.ConnectionString = ConfigurationManager.ConnectionStrings["dbConn"].ToString();

            conn.Open();
            cmd.Connection = conn;

            cmd.CommandText = "";

        }
        catch (SqlException ex)
        {
            throw ex;
        }

        finally
        { 

        }
    }

    }
}